﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CADs
{
    public class PaisCAD: BaseCAD
    {
        public PaisCAD()
            : base()
        {
        }

        public dynamic GetPaisIdSpanish()
        {
            return contexto.Paises.Select(p => new { p.Id, p.Espanol }).OrderBy(p => p.Espanol);
        }

        public dynamic GetPaisIdGerman()
        {
            return contexto.Paises.Select(p => new { p.Id, p.Aleman }).OrderBy(p => p.Aleman);
        }

        public dynamic GetPaisIdEnglish()
        {
            return contexto.Paises.Select(p => new { p.Id, p.Ingles }).OrderBy(p => p.Ingles);
        }

        public dynamic GetPaisIdFrench()
        {
            return contexto.Paises.Select(p => new { p.Id, p.Frances }).OrderBy(p => p.Frances);
        }
    }
}
